home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
sendcomm.zip
/
EXAMPLE
next >
Wrap
Text File
|
1991-10-06
|
1KB
|
45 lines
@ECHO OFF
CLS
REM ┌────────────────────────────────────────────────────────────────┐
REM │ This batch file illustrates how you can create simple "doors" │
REM │ for PCBoard 14.5 using SENDCOM and READCOM from Sparkware. │
REM │ You can produce doors using these simple building blocks. │
REM └────────────────────────────────────────────────────────────────┘
REM ** PLEASE NOTE **
REM READCOM may not set DOS environment variables if you execute the
REM batch file as a SHELL from PCBoard. You may need to install the
REM door as a "non-shellable" door first.
REM First, we will clear the display and welcome the caller. We'll
REM also check the DOS errorlevel to make sure the caller is still
REM there after executing SENDCOM.
SENDCOM @CLS@Welcome @FIRST@. Today is @SYSDATE@ at @SYSTIME@.
IF ERRORLEVEL=1 GOTO DONE
REM Next we'll ask for the user's last name.
READCOM 'Please enter your last name @FIRST@: ' LASTNAME /L:25
IF ERRORLEVEL=1 GOTO DONE
REM Now we'll transmit the user's FULL name.
SENDCOM Welcome @FIRST@ %LASTNAME%
IF ERRORLEVEL=1 GOTO DONE
REM Now call BOARD.BAT to return to PCBoard. If you are SHELLing
REM from PCBoard you need to remove the "BOARD" command (but leave
REM the ":DONE" label in the file).
:DONE
BOARD